﻿@model NOSDC.Models.ContactUsViewModel
@using SSB.Web.Mvc.Html

@section Title{
    @Html.CreatePageTitle("Contact Us")
}

@section MetaTags{
    @Html.CreateMetaDescription("Fill out the following form to contact NOSDC. If you would like to be a speaker or become a sponsor, this is the place to do it!")
}
@section Right{
    @{Html.RenderAction("GetUpcomingEvent", "Events");}
    @{Html.RenderAction("RecentJobs", "Jobs");}
}

<fieldset class="regFormBG" >
    <h2 style="font-size: 22px; padding-bottom: 1px; color: #236B8E; margin: 0; padding: 0;">CONTACT US</h2>
    <div style="font-size: 12px;">If you are interested in becoming a speaker, sponsor or if you have any general inquiries / suggestions for our group please use the following form.</div>
    <div style=" padding-top:10px;">
        @Html.ValidationSummary(true, "Please correct the errors and try again.")
    </div>
    @using (Html.BeginForm())
    {
        <div>
            <div class="regFormLabel">
                @Html.LabelFor(m => m.ContactUs.Subject)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.ContactUs.Subject, new { @class = "regForm" })
                @Html.ValidationMessageFor(m => m.ContactUs.Subject)
            </div>
            <div class="regFormLabel">
                @Html.LabelFor(m => m.ContactUs.Name)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.ContactUs.Name, new { @class = "regForm" })
                @Html.ValidationMessageFor(m => m.ContactUs.Name)
            </div>
            <div class="regFormLabel">
                Your Email
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.ContactUs.From, new { @class = "regForm", title = "email@Example.com" })
                @Html.ValidationMessageFor(m => m.ContactUs.From)
            </div>
            <div class="regFormLabel">
                @Html.LabelFor(m => m.ContactUs.Message)
            </div>
            <div class="editor-field">
                @Html.TextAreaFor(m => m.ContactUs.Message, new { @class = "regForm", style = "width:610px; height:120px;" })
                @Html.ValidationMessageFor(m => m.ContactUs.Message)
            </div>
            <div class="regFormLabel">
                @Html.LabelFor(m => m.ContactUs.Captcha)
            </div>
            <div class="editor-field">
                <div>
                    <div>@Html.MvcCaptcha()</div> 
                </div>
                @Html.TextBoxFor(m => m.ContactUs.Captcha, new { @class = "regForm", style="clear:both;", title="This Captcha Is Case Sensitive" })
                @Html.ValidationMessageFor(m => m.ContactUs.Captcha)
            </div>
            <div class="clear">
                <br />
                <div class="buttons">
                    <button type="submit" class="regular">Contact Us</button>
                </div>
            </div>
        </div> 
    }
    
</fieldset>
<br />

@section JavaScript{
    <script type="text/javascript">
    $(document).ready(function() {
        $('input[title]').inputHints();
    });
    $("#ContactUs").addClass("selected");
    </script>
}